\hypertarget{class_a_v_i2_file}{
\section{AVI2File Class Reference}
\label{class_a_v_i2_file}\index{AVI2File@{AVI2File}}
}


{\ttfamily \#include $<$avi.h$>$}Inheritance diagram for AVI2File::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3cm]{class_a_v_i2_file}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{class_a_v_i2_file_a2bcacacbf565fddffa27bd8be90aa62c}{Init} (int format, int sampleFrequency, int indexType)
\item 
virtual bool \hyperlink{class_a_v_i2_file_a467efd0c4105b6dacaca1e65412ed078}{WriteFrame} (\hyperlink{class_frame}{Frame} $\ast$frame)
\item 
virtual void \hyperlink{class_a_v_i2_file_aaa0ec0edbef4df8ad7505c2c575c388c}{WriteRIFF} (void)
\item 
\hypertarget{class_a_v_i2_file_a4158fabb704d857873c9fb144682e5db}{
virtual void {\bfseries setDVINFO} (DVINFO \&)}
\label{class_a_v_i2_file_a4158fabb704d857873c9fb144682e5db}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
writing Type 2 (separate audio data) DV AVIs

This file type contains both audio and video tracks. It is therefore more compatible to certain Windows programs, which expect any AVI having both audio and video tracks. The video tracks contain the raw DV data (as in type 1) and the extracted audio tracks.

Note that because the DV data contains audio information anyway, this means duplication of data and a slight increase of file size. 

\subsection{Member Function Documentation}
\hypertarget{class_a_v_i2_file_a2bcacacbf565fddffa27bd8be90aa62c}{
\index{AVI2File@{AVI2File}!Init@{Init}}
\index{Init@{Init}!AVI2File@{AVI2File}}
\subsubsection[{Init}]{\setlength{\rightskip}{0pt plus 5cm}void AVI2File::Init (int {\em format}, \/  int {\em sampleFrequency}, \/  int {\em indexType})\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_a_v_i2_file_a2bcacacbf565fddffa27bd8be90aa62c}
Initialize the AVI structure to its initial state, either for PAL or NTSC format

Initialize the \hyperlink{class_a_v_i_file}{AVIFile} attributes: mainHdr, indx, ix00, idx1

\begin{Desc}
\item[\hyperlink{todo__todo000003}{Todo}]consolidate \hyperlink{class_a_v_i_file_ae3cf3009dfda33f25eaef7eed374c18c}{AVIFile::Init}, \hyperlink{class_a_v_i1_file_a10a9e391cfe38e75273b05af17ec8a54}{AVI1File::Init}, \hyperlink{class_a_v_i2_file_a2bcacacbf565fddffa27bd8be90aa62c}{AVI2File::Init}. They are somewhat redundant. \end{Desc}

\begin{DoxyParams}{Parameters}
\item[{\em format}]pass AVI\_\-PAL or AVI\_\-NTSC \item[{\em sampleFrequency}]the sample frequency of the audio content \item[{\em indexType}]pass AVI\_\-SMALL\_\-INDEX or AVI\_\-LARGE\_\-INDEX \end{DoxyParams}


Reimplemented from \hyperlink{class_a_v_i_file_ae3cf3009dfda33f25eaef7eed374c18c}{AVIFile}.\hypertarget{class_a_v_i2_file_a467efd0c4105b6dacaca1e65412ed078}{
\index{AVI2File@{AVI2File}!WriteFrame@{WriteFrame}}
\index{WriteFrame@{WriteFrame}!AVI2File@{AVI2File}}
\subsubsection[{WriteFrame}]{\setlength{\rightskip}{0pt plus 5cm}bool AVI2File::WriteFrame ({\bf Frame} $\ast$ {\em frame})\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_a_v_i2_file_a467efd0c4105b6dacaca1e65412ed078}
Write a DV video frame


\begin{DoxyParams}{Parameters}
\item[{\em frame}]the frame to write \end{DoxyParams}


Reimplemented from \hyperlink{class_a_v_i_file}{AVIFile}.\hypertarget{class_a_v_i2_file_aaa0ec0edbef4df8ad7505c2c575c388c}{
\index{AVI2File@{AVI2File}!WriteRIFF@{WriteRIFF}}
\index{WriteRIFF@{WriteRIFF}!AVI2File@{AVI2File}}
\subsubsection[{WriteRIFF}]{\setlength{\rightskip}{0pt plus 5cm}void AVI2File::WriteRIFF (void)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_a_v_i2_file_aaa0ec0edbef4df8ad7505c2c575c388c}
Writes out the directory structure

For all items in the directory list that have not been written yet, it seeks to the file position where that item should be stored and writes the type and length field. If the item has a name, it will also write the name field.

\begin{DoxyNote}{Note}
It does not write the contents of any item. Use WriteChunk to do that. 
\end{DoxyNote}


Reimplemented from \hyperlink{class_a_v_i_file_a543c702c53cd565c31c32375941957ad}{AVIFile}.

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
C:/Users/Matt/Documents/School/Robotics/zebulon/v2/cv/ext/dvgrab/\hyperlink{avi_8h}{avi.h}\item 
C:/Users/Matt/Documents/School/Robotics/zebulon/v2/cv/ext/dvgrab/avi.cc\end{DoxyCompactItemize}
